package com.jdj.framework.dao.mybatis.provider;


import com.jdj.framework.dao.mybatis.entity.BaseEntity;

/**
 * 更新接口provider
 *
 * @author caijinbang
 * @date 2019-04-14 13:18
 */
public interface UpdateSqlProvider {

    /**
     * 添加set语句
     * @param setSql
     * @param entity
     * @param <Entity>
     * @return
     */
    <Entity extends BaseEntity> StringBuffer appendSetSql(StringBuffer setSql, Entity entity);

    /**
     * 添加where语句
     * @param whereSql
     * @param entity
     * @param <Entity>
     * @return
     */
    <Entity extends BaseEntity> StringBuffer appendWheretSql(StringBuffer whereSql, Entity entity);
}
